<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>
<fmt:message key="menu_goods_label1" var="menu_goods_label1"/>
<fmt:message key="menu_goods_label2" var="menu_goods_label2"/>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<link rel="StyleSheet" href="../../scripts/dtree/dtree.css" type="text/css" />
<script type="text/javascript" src="../../scripts/dtree/dtree.js"></script>
<br>
<c:if test="${not empty goodsTypes}">
<TABLE class=leftColumnModuleHead cellSpacing=0 cellPadding=0 
  width="100%" border=0 valign="top">
  <TBODY>
  <TR>
    <TH width=5 valign="top"><IMG height=21 alt="${menu_goods_label1}" 
      src="../../themes/${sessionScope.loginUser.theme}/images/moduleTab_left.gif" 
      width=5 border=0></TH>
    <TH style="BACKGROUND-IMAGE: url(../../themes/${sessionScope.loginUser.theme}/images/moduleTab_middle.gif); background-repeat:repeat-x;" width="100%">${menu_goods_label1}</TH>
    <TH width=5 valign="top"><IMG height=21 alt="${menu_goods_label1}" 
      src="../../themes/${sessionScope.loginUser.theme}/images/moduleTab_right.gif" 
      width=9 border=0></TH>
   </TR>  
  </TBODY>
</TABLE>
<TABLE class=subMenu cellSpacing=0 cellPadding=0 width="100%" >
	<TBODY>	
	<tr><td >
	<div class="dtree">
	<p></p>
	<script type="text/javascript">
	 <!--
		d = new dTree('d');	
		d.add(0,-1,'${menu_goods_label2}');
		d.selected = ${empty param.id?0:param.id};
		<c:forEach var="goodsType" items="${goodsTypes}">
			d.add('${goodsType.id}','${goodsType.superiorId}','${goodsType.typeName}','<c:url value="/modules/goods/goodsInfo.do?method=goodsIndex&typeId=${goodsType.id}&superiorId=${goodsType.superiorId}&ec_s_id=desc"/>','${goodsType.typeName}');	
		</c:forEach>
		document.write(d);
      //-->
	</script>
	</div>	
	</td></tr>
	</TBODY>
</TABLE>
</c:if>